﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CILADA.TestAssemblyTwo.SubTypeKnowledge;
using System.Reflection;

namespace CILADA.TestAssemblyTwo
{
    class Casting
    {
        public void Cast1(Object obj)
        {
            Object temp = (Type)obj;
            temp.ToString();
        }

        public void Cast2(TATSubType obj)
        {
            TATSuperType type = (TATSuperType)obj;
            type.SubType.Name = "thisType";
        }

        public void Cast3(Object obj, string typeName)
        {
            Type t = GetType();
            Type a = Assembly.GetAssembly(t).GetType(typeName);
        }
    }
}
